package se.ytterman.jserial.framework.device;

import se.ytterman.jserial.framework.messaging.Event;
import java.lang.*;
import java.util.*;
import java.io.*;
import java.util.regex.*;

public class Response extends Event {

    public Response(String responseId, String responseName) throws Exception {
        // Store response id
        this.responseId = responseId;
        
	// Store response name
	this.responseName = responseName;
    }
    
    public String getResponseId() {
        return this.responseId;
    }
    
    public String getResponseName() {
	return this.responseName;
    }
    
    public String toString() {
        String result = this.responseName + " (" + this.responseId + ") " + 
                        "Parameters:" + this.eventParameters.toString();
        
        return result;
    }    
    
    private String responseId;
    private String responseName;
}
